
package com.pie4cloud.pie.job.biz.gather.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pie4cloud.pie.job.api.entity.ApplyInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 
 *
 * @author feilei
 * @date 2022-01-10 00:54:34
 */
@Mapper
public interface ApplyInfoMapper extends BaseMapper<ApplyInfo> {

	@Update("update T_APPLY_INFO set apply_status =#{applyStatus} where apply_id=#{applyId}")
	public boolean updateApplyStatusById(@Param("applyId") Long applyId, @Param("applyStatus")Integer applyStatus);

	@Update("update T_APPLY_INFO set apply_ftp_id =#{ftpId} where apply_id=#{applyId}")
	public boolean updateFtpIdById(@Param("ftpId")Long ftpId,@Param("applyId")Long applyId);

	@Update("update T_APPLY_INFO set apply_decode_id = #{decodeId} where apply_id=#{applyId}")
	public boolean updateDecodeIdById(@Param("decodeId")Long decodeId,@Param("applyId")Long applyId);
}
